# delimit ;

use march_cps_males;

keep if year==1981 | year==1991;
keep if age>=25 & age<=44;
keep if race4<=2;
gen white=race4==1;
gen black=race4==2;

gen coll_w=college_grad*white;
gen coll_b=college_grad*black;

gen weekly_earnl=ln(weekly_earn);

xi i.marital_status i.age i.veteran;

sort year;
by year: reg weekly_earnl _I* black coll_b coll_w;